using System.Net;

namespace airwolf
{
	public class IP
	{
		public static string LocalAddress
		{
			get
			{
				IPHostEntry IPHost = Dns.GetHostEntry(Dns.GetHostName());

                foreach (IPAddress address in IPHost.AddressList)
                {
                    if(address.AddressFamily == System.Net.Sockets.AddressFamily.InterNetwork)
                        return address.ToString();
                }
                return null;
			}
		}

        public static int GetAvailablePort()
        {
            return 0;
        }
	}
}